package com.qqtech.qquan.im.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.StringUtil;
import com.qqtech.qquan.user.enums.UserConst;

@SuppressWarnings("serial")
public class ImUserVo extends ImUser{
	
	/**
	 * 头像
	 */
	private java.lang.String logo;
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

	public java.lang.String getLogo() {
		return logo;
	}

	public void setLogo(java.lang.String logo) {
		this.logo = logo;
	}
	
	public java.lang.String getFullLogo() {
		if(StringUtil.isBlank(this.getLogo())){
			return "";
		}else if(this.getLogo().indexOf("source://")>-1){
			return this.getLogo();
		} else{
			return super.getImgHandleDomain() + "" + this.getLogo() + UserConst.IMG_POSTFIX;
		}
	}
}